#include <iostream>
#include "include/iniParser.h"

using namespace std;

int main()
{
    FIni ini;
    bool ret = ini.parse("test.ini");
    if (ret) {
        ini.dump();
    }

    cout << "parse ini " << ret << endl;

    if (ret) {
        ini.setFlag("Motive");
        ini.set("vcam_src", "192.168.8.212");
        fprintf(stdout, "\nGet num: %6f num: %d\n", ini.get("num", 0.0f), ini.get("num", 0));
        ini.remove("joke");
        fprintf(stdout, "\nIf flag joke set? %d\n", ini.isExist("joke"));
        //ini.flush();
    }
    return 0;
}
